<template>
	<div>

		<SideBar props_active_id='item_3'></SideBar>
		<GoodsBlock></GoodsBlock>


	</div>
</template>

<script>
	import SideBar from "../admin_block/side_bar.vue"
	import GoodsBlock from "../admin_block/goods_block.vue"
	import Cookies from 'js-cookie'
	import {
		Toast
	} from 'vant'
	export default {
		name: '',
		components: {
			SideBar,
			GoodsBlock,
		},
		props: {},
		data() {
			return {}
		},
		methods: {},
		computed: {},
		watch: {},
		created() {},
		mounted() {
			let duty = Cookies.get('duty')
			let user_id = Cookies.get('user_id')
			console.log(duty.indexOf('SUPER') == -1)
			console.log(duty)
			//薛海文id为864
			if (duty.indexOf('SUPER') != -1) {
				return
			} else if (user_id != 864) {
				this.$router.push('/Inventory')
				Toast('没有权限访问该页面')
			}
		},
	}
</script>

<style scoped lang="less">

</style>
